package com.eqxiu.ieditor.api.controller.weixin.doc;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.eqxiu.ieditor.commons.web.ResultData;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api("获取微信相关的用户")
public interface WxUserDoc {
	@ApiOperation(value = "使用appid获取二维码url,客户端通过插件生成图片供用户扫描,轮询查询用户登录状态,扫码关注公众号成功后,返回用户的openid")
	public ResultData qrlogin(HttpServletRequest req, HttpServletResponse resp);

	@ApiOperation(value = "微信授权")
	public void wxAuth(@ApiParam String appId, @ApiParam String code, @ApiParam String state, HttpServletResponse resp)
			throws IOException;

	@ApiOperation("取得已经授权的信息")
	public ResultData getCacheWxUser(HttpServletRequest req, HttpServletResponse resp);
}
